const Koa = require('koa')
const bodyparser = require('koa-bodyparser')
const cors = require('koa-cors')
const router = require('./router')
const app = new Koa();
app.use(cors())
app.use(bodyparser())
router(app)
app.listen(8888, () =>{
    console.log(8888)
})